Skip to content

feat(chat): eagerly update token balance on incoming cash messages#959

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/eager-token-balance-on-cash-receive
Jun 22, 2026
Merged

feat(chat): eagerly update token balance on incoming cash messages#959
bmc08gt merged 1 commit into
code/cashfrom
feat/eager-token-balance-on-cash-receive

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

When a cash message arrives via the event stream, ChatCoordinator now calls tokenCoordinator.add(mint, amount) so the recipient balance reflects the funds immediately without waiting for the next sync cycle.

Adds unit tests for both the ChatCoordinator eager dispatch logic and the TokenCoordinator mint-based add/subtract conversion math.

When a cash message arrives via the event stream, ChatCoordinator now
calls tokenCoordinator.add(mint, amount) so the recipient balance
reflects the funds immediately without waiting for the next sync cycle.

Adds unit tests for both the ChatCoordinator eager dispatch logic and
the TokenCoordinator mint-based add/subtract conversion math.

Signed-off-by: Brandon McAnsh <[email protected]>
@bmc08gt bmc08gt self-assigned this Jun 20, 2026
@github-actions github-actions Bot added type: feature New functionality area: tokens Token accounts, balances, token info labels Jun 20, 2026
@bmc08gt bmc08gt merged commit 2b8f8d9 into code/cash Jun 22, 2026
3 checks passed
@bmc08gt bmc08gt deleted the feat/eager-token-balance-on-cash-receive branch June 22, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant